package com.zrx.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分类表(Category)表实体类
 *
 * @author makejava
 * @since 2022-09-16 09:08:56
 */

@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_category")
@ApiModel(value = "分类", description = "分类")
public class Category {

    @TableId
    private Long id;


    
    @ApiModelProperty(value = " 分类名")
    private String name;
    
    @ApiModelProperty(value = " 父分类id，如果没有父分类为-1")
    private Long pid;
    
    @ApiModelProperty(value = " 描述")
    private String description;
    
    @ApiModelProperty(value = " 状态0:正常,1禁用")
    private String status;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @ApiModelProperty(value = " ")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    @ApiModelProperty(value = " 删除标志（0代表未删除，1代表已删除）")
    private Integer delFlag;




}

